package com.mew.slots.core.game.dwsl.message;

import com.mew.slots.core.common.messge.response.SlotsPlayResponseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

/**
 * @author dylin
 */
@Data
@ToString(callSuper = true)
public class DwslResponseMessage extends SlotsPlayResponseMessage {
    public int freeRate;//免费倍数
    public int bonus;//特殊
    public int[] wns;//wild激活次数
    @Override
    public void write(ByteBuf b) {
        super.write(b);
        writeInt(b,freeRate);
        writeInt(b,bonus);
        writeInt(b,wns.length);
        for (int wn : wns) {
            writeInt(b,wn);
        }
    }

    @Override
    public DwslResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
